Conditions | 1 |
Paths | 16 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 1 | Features | 4 |
1 | const fs = require('fs'), |
||
21 | constructor(filename, options) { |
||
22 | super() |
||
23 | |||
24 | this.filename = filename |
||
25 | |||
26 | this.options = options || {} |
||
27 | this.outFile = options.outFile || __dirname + '/../dist/' |
||
|
|||
28 | this._checkFile() |
||
29 | this._content = fs.readFileSync(this.filename) |
||
30 | this.data = this._parseData() |
||
31 | this.data.modelPath = options.modelPath || 'docs/models' |
||
32 | this.data.docPath = options.docsPath || 'docs' |
||
33 | } |
||
34 | |||
56 | module.exports = GenerateApi |